package com.ky.gp.app.controller;

import com.ky.common.vo.R;
import com.ky.gp.app.service.PayLogFeign;

import com.ky.user.entity.PayAdd;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;



/**
 * --- 天道酬勤 ---
 *
 * @author ZhaoTongTong
 * @date 2024/6/21
 * @desc -- 代码敲烂 月薪过万--
 */

@RestController
@RequestMapping("/api/user/wallet")
public class PayLogController {

    @Autowired
    private PayLogFeign payLogFeign;
    @RequestMapping("/create")
    public R create(@RequestBody PayAdd payAdd){
        return payLogFeign.create(payAdd);
    }
    @RequestMapping("/my")
    public R findAllWallet(){
        return payLogFeign.findAllWallet();
    }
    @RequestMapping("/findAllByType")
    public R findAllPayLog(@RequestParam("type")Integer type){
        return payLogFeign.findAllPayLog(type);
    }


}
